using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Data;
using PlugNT.Safe;
using PlugNT.Custom;
using PlugNT.Cms.Model;
//5^1^a^s^p^x
namespace PlugNT.Cms.BLL
{



    public class Category
    {

        private static readonly PlugNT.Cms.DAL.Category dal = new PlugNT.Cms.DAL.Category();








        public string GetClsno(int id)
        {
            return dal.GetClsno(id);

        }






        public string GetClslistByName(string clsname)
        {
            return dal.GetClslistByName(StringHelper.SqlFilter(clsname));
        }






        public string GetClslistByNo(string clsno)
        {
            return dal.GetClslistByNo(StringHelper.SqlFilter(clsno));
        }






        public string GetClsnameByParentNo(string clsno)
        {
             return dal.GetClsnameByParentNo(StringHelper.SqlFilter(clsno));
        }






        public string GetParentClsno(string clsno)
        {
            return dal.GetParentClsno(StringHelper.SqlFilter(clsno));
        }
 







        public CategoryInfo GetCategoryInfo(string clsno)
        {
            return dal.GetCategoryInfo(StringHelper.SqlFilter(clsno));

        }






        public DataTable GetCategoryTable(string clsno)
        {
            return dal.GetCategoryTable(StringHelper.SqlFilter(clsno));
        }









        public bool Add(CategoryInfo model)
        {
            return dal.Add(model);
        }







        public bool Update(CategoryInfo model, bool isSubModel)
        {
            return dal.Update(model,isSubModel);
        }






        public bool Delete(string clsno)
        {
            return dal.Delete(StringHelper.SqlFilter(clsno));
        }






        public bool ParentExists(string clsno)
        {
            return dal.ParentExists(StringHelper.SqlFilter(clsno));
        }





        public DataTable GetList()
        {
            return dal.GetList();
        }






        public DataTable GetOrderList()
        {
            return dal.GetOrderList();
        }






        public DataTable GetOrderList(string clslist)
        {
            return dal.GetOrderList(clslist.Trim());
        }






        public DataTable GetListRow(string clsno)
        {
            return dal.GetListRow(StringHelper.SqlFilter(clsno));

        }






        public DataTable GetOrderSubList(string clsno)
        {
            return dal.GetOrderSubList(StringHelper.SqlFilter(clsno));

        }



        public string Help()
        {
            return @"mailto:354990393@qq.com";
        }


    }

}
